package isp.apps.example.shoppingcart.domain;

import java.math.BigDecimal;
import java.text.DateFormat;
import java.util.Calendar;
import java.util.HashSet;
import java.util.Set;


public class CompletedOrder
{
  private Calendar calendar;
  private String firstName="";
  private String lastName="";
  private String address1="";
  private String address2="";
  private String city="";
  private String state="";
  private String zip="";
  private String phone="";
  private String ccType="";
  private String ccNumber="";
  private String ccSecurity="";
  private String ccExpiration="";
  private Integer id;
  private ShoppingCart completedCart;
  private BigDecimal shippingCost;
  
  private Set orderItems = new HashSet();

  private OrderStatus orderStatus;
  private ShippingOption shippingOption;

  public CompletedOrder()
  {
  }

  public void setFirstName(String firstName)
  {
    this.firstName = firstName;
  }

  public String getFirstName()
  {
    return firstName;
  }

  public void setLastName(String lastName)
  {
    this.lastName = lastName;
  }

  public String getLastName()
  {
    return lastName;
  }

  public void setAddress1(String address1)
  {
    this.address1 = address1;
  }

  public String getAddress1()
  {
    return address1;
  }

  public void setAddress2(String address2)
  {
    this.address2 = address2;
  }

  public String getAddress2()
  {
    return address2;
  }

  public void setCity(String city)
  {
    this.city = city;
  }

  public String getCity()
  {
    return city;
  }

  public void setState(String state)
  {
    this.state = state;
  }

  public String getState()
  {
    return state;
  }

  public void setZip(String zip)
  {
    this.zip = zip;
  }

  public String getZip()
  {
    return zip;
  }

  public void setPhone(String phone)
  {
    this.phone = phone;
  }

  public String getPhone()
  {
    return phone;
  }

  public void setCcType(String ccType)
  {
    this.ccType = ccType;
  }

  public String getCcType()
  {
    return ccType;
  }

  public void setCcNumber(String ccNumber)
  {
    this.ccNumber = ccNumber;
  }

  public String getCcNumber()
  {
    return ccNumber;
  }

  public void setCcSecurity(String ccSecurity)
  {
    this.ccSecurity = ccSecurity;
  }

  public String getCcSecurity()
  {
    return ccSecurity;
  }

  public void setCcExpiration(String ccExpiration)
  {
    this.ccExpiration = ccExpiration;
  }

  public String getCcExpiration()
  {
    return ccExpiration;
  }

  public void setId(Integer id)
  {
    this.id = id;
  }

  public Integer getId()
  {
    return id;
  }

  public void setCompletedCart(ShoppingCart completedCart)
  {
    this.completedCart = completedCart;
  }

  public ShoppingCart getCompletedCart()
  {
    return completedCart;
  }

  public void setCalendar(Calendar calendar)
  {
    this.calendar = calendar;
  }

  public Calendar getCalendar()
  {
    return calendar;
  }

  public String getTimeStamp()
  {
    return DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM).format(calendar.getTime());
  }

  //orderstatus OBJECT
  public OrderStatus getOrderStatus()
  {
    return orderStatus;
  }

  //orderstatus OBJECT
  public void setOrderStatus(OrderStatus orderStatus)
  {
    this.orderStatus = orderStatus;
  }

  //shipping option OBJECT
  public void setShippingOption(ShippingOption shippingOption)
  {
    this.shippingOption = shippingOption;
  }

  //shipping option OBJECT
  public ShippingOption getShippingOption()
  {
    return shippingOption;
  }

  public void setShippingCost(BigDecimal shippingCost)
  {
    this.shippingCost = shippingCost;
  }

  public BigDecimal getShippingCost()
  {
    return shippingCost;
  }

  public void setOrderItems(Set orderItems)
  {
    this.orderItems = orderItems;
  }

  public Set getOrderItems()
  {
    return orderItems;
  }
}

